<?php 
if(KT!='KhiThe') exit;
class statistics_model extends khithe_mysql{
	
	public function get_total_new()
	{		
		$query = "SELECT * FROM ".news." WHERE `Status`='true' ";
		$note = parent::selectMySQL($query);	
		$total = mysql_num_rows($note);
		
		parent::CloseConnection();
		
		return $total;
	}
	
	public function get_total_product()
	{		
		$query = "SELECT * FROM ".products." ";
		$note = parent::selectMySQL($query);	
		$total = mysql_num_rows($note);
		
		parent::CloseConnection();
		
		return $total;
	}
}
?>